function (key, values) { 
    var max_score_user = values[0].user;  
    var max_score = values[0].scoreTot;

    for(var i=1; i<values.length; i++){
        if(values[i].scoreTot > max_score){
            max_score = values[i].scoreTot;
            max_score_user = values[i].user;
        
        }
    
    }


    return {user: max_score_user, scoreTot: max_score};
}
